/*
 * @Author: wangke
 * @Date: 2025-04-20 22:07:43
 * @LastEditors: wangke
 * @LastEditTime: 2025-05-06 23:48:47
 * 
 */
#ifndef APP_I2S_H
#define APP_I2S_H
#include "freertos/FreeRTOS.h"
#include "freertos/task.h"
#include "driver/i2s.h"
#include "esp_system.h"


extern uint8_t* AuDio_data;
extern size_t AuDio_len;


// 16000Hz, 16bit, stereo
void I2S_Init();
void I2S_RecoderInit();
int I2S_Read(char* data, int numData);
void I2S_Write(uint8_t* data, int numData);

void playAudio(uint8_t* audioData, size_t audioDataSize);
void clearAudio(void);
void Audio_Record(void);
void play_SD_video(const char * path);

#endif

